package com.geline.easyexcel.interfaces;

import com.geline.easyexcel.domain.ExcelError;
import com.geline.easyexcel.utils.ExcelValidUtil;

import java.util.List;
import java.util.function.BiFunction;

/**
 * 检验Excel数据 Function
 *
 * @author: mengxin
 * @date: 2024/1/31 16:10
 */
public class ExcelValidFunction implements BiFunction<Integer, Object, List<ExcelError>> {

    @Override
    public List<ExcelError> apply(Integer rowIndex, Object data) {
        return ExcelValidUtil.valid(rowIndex, data);
    }
}
